<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri='http://java.sun.com/jsp/jstl/core' prefix='c'%>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<jsp:include page="/common/header.jsp"></jsp:include>
<body>
<div id="wrapper">
    <jsp:include page="/left.jsp"/>
    <div id="page-wrapper" class="gray-bg dashbard-1">
        <jsp:include page="/top.jsp"/>
        <div class="row wrapper border-bottom white-bg page-heading">
            <div class="col-lg-10">
                <%--<h2>添加用户</h2>--%>
                <ol class="breadcrumb">
                    <li>
                        <a href="javascript:" onclick="self.location=document.referrer;">车主管理</a>
                    </li>
                    <li>
                        <strong>添加车主</strong>
                    </li>
                </ol>
            </div>
        </div>
        <!-- content -->
        <div class="wrapper wrapper-content animated fadeInRight">
            <div class="ibox-content">
                <div class="row">
                    <div class="col-sm-6">
                        <form class="form-horizontal" id="add_cuser_form" >
                            <div class="form-group">
                                <label class="col-lg-3 control-label">帐号<span class="required">*</span></label>
                                <div class="col-lg-8">
                                    <input type="text" placeholder="请输入帐号" class="form-control" name="userName" id="c_user_name_id">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-lg-3 control-label">密码<span class="required">*</span></label>
                                <div class="col-lg-8">
                                    <input type="text" placeholder="请输入密码" class="form-control" name="password">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-lg-3 control-label">姓名<span class="required">*</span></label>
                                <div class="col-lg-8">
                                    <input type="text" placeholder="请输入姓名" class="form-control" name="certName" >
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-lg-3 control-label">随车电话<span class="required">*</span></label>
                                <div class="col-lg-8">
                                    <input type="text" placeholder="请输入联系电话" class="form-control" name="phone" >
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-lg-3 control-label">车长<span class="required">*</span></label>
                                <div class="col-lg-8">
                                    <select name="carLength" class="form-control" id="carLength" >
                                    </select>
                                </div>
                                <%--<div class="col-lg-8">--%>
                                <%--<input type="text" placeholder="请输入车长" class="form-control" name="carLength">--%>
                                <%--</div>--%>
                            </div>
                            <div class="form-group">
                                <label class="col-lg-3 control-label">车类型<span class="required">*</span></label>
                                <div class="col-lg-8">
                                    <select name="carType"  id="askCarTypeId" class="form-control">
                                        <option value="">请输入车型</option>
                                        <option value="平板">平板</option>
                                        <option value="高栏">高栏</option>
                                        <option value="厢货">厢货</option>
                                        <option value="高低板">高低板</option>
                                        <option value="保温">保温</option>
                                        <option value="冷藏">冷藏</option>
                                        <option value="自卸">自卸</option>
                                        <option value="危险品">危险品</option>
                                    </select>
                                    <%--<input type="text" placeholder="请输入车类型" class="form-control" name="carType">--%>
                                </div>
                            </div>
                            <%--<div class="form-group">--%>
                                <%--<label class="col-lg-3 control-label">车重：</label>--%>
                                <%--<div class="col-lg-8">--%>
                                    <%--<input type="text" placeholder="请输入车重" class="form-control" name="carWeight">--%>
                                <%--</div>--%>
                            <%--</div>--%>
                            <div class="form-group">
                                <label class="col-lg-3 control-label">车牌号：</label>
                                <div class="col-lg-8">
                                    <input type="text" placeholder="请输入车牌号" class="form-control" name="carNumber">
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-lg-3 control-label">常跑路线<span class="required">*</span></label>
                                <div class="col-lg-8">
                                    <input type="text" placeholder="城市多个以/分割" class="form-control" name="runningRoute">
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-lg-3 control-label">归属地:</label>
                                <div class="col-lg-8" data-toggle="distpicker">
                                    <select name="belongProvince" class="col-lg-4" ></select>
                                    <select name="belongCity" class="col-lg-4" ></select>
                                    <select name="belongCounty" class="col-lg-4"></select>
                                </div>
                            </div>


                            <input type="hidden" name="expireTime">
                            <div id="cUserPlatformContain">
                                <div class="form-group">
                                    <label class="col-lg-3 control-label">平台类型:</label>
                                    <div class="col-lg-2">
                                        <input type="checkbox" value="1" name="i_login_type" id="i_login_type">iOS
                                    </div>
                                    <div class="col-lg-6">
                                        <input id="i_stopTime" placeholder="请输入iOS到期时间" name="i_stopTime" class="laydate-icon form-control layer-date">
                                    </div>

                                </div>
                                <div class="form-group">
                                    <label class="col-lg-3 control-label"></label>
                                    <div class="col-lg-2 ">
                                        <input type="checkbox" value="2" name="a_login_type" id="a_login_type">Android
                                    </div>
                                    <div class="col-lg-6 ">
                                        <input id="a_stopTime" placeholder="请输入Android到期时间" name="a_stopTime" class="laydate-icon form-control layer-date ">
                                    </div>
                                </div>
                            </div>
                            <div class="form-group">
                                <div class="col-lg-offset-3 col-lg-8">
                                    <a href="cuser_list.jsp" class="btn btn-primary">取消</a>
                                    <a class="btn btn-primary" id="btn_add_cuser" >添加</a>
                                </div>
                            </div>
                        </form>

                    </div>
                </div>
            </div>
        </div>
        <!-- content -->
        <jsp:include page="/footer.jsp"/>
    </div>
</div>

</div>
</div>

<script src="../../static/js/distpicker.data.js"></script>
<script src="../../static/js/distpicker.js"></script>
<script src="${ctx}/js/cuser/cuser_add.js"></script>

<script type="text/javascript">
    laydate({elem:"#i_stopTime",event:"focus"});
    laydate({elem:"#a_stopTime",event:"focus"});
</script>
</body>